package com.itheima.innerclass;

public class Outer {
    //成员内部类,属于外部类的对象
    private int age;
    public static int num = 10;
    public String name = "外部类名";
    public class Inner{
        public String name = "内部类名";
        public void method(){
            System.out.println("method");
        }
        public void show(){
            String name = "局部变量";
            System.out.println(name);
            System.out.println(this.name);
            System.out.println(Outer.this.name);
            System.out.println("show");
            System.out.println(age);
            System.out.println(num);
        }
    }
}
